package Service;

import DAO.UserDao;

import javax.transaction.Transactional;

@Transactional
public class UserService
{
    private UserDao userDao;

    public boolean checkUser(String user_name, String user_password, int loginOrRegister)
    {
        return userDao.checkUser(user_name, user_password, loginOrRegister);
    }

    public UserDao getUserDao()
    {
        return userDao;
    }

    public void setUserDao(UserDao userDao)
    {
        this.userDao = userDao;
    }

}
